﻿using Microsoft.AspNetCore.Mvc;
using MX.Core.Assets;
using MX.Core.Http.MVC.Model;
using MX.Core.Log;
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
 
using VC.API.Core;
using VC.BLL;
using VC.Models;
using Xabe.FFmpeg;
using Xabe.FFmpeg.Enums;
using Xabe.FFmpeg.Model;
using Xabe.FFmpeg.Streams;

namespace VC.API.Controllers
{
    public class VideoController : Controller
    {
        public JsonResult List(int pageIndex = 1, int pageSize = 10)
        {
            var result = new MXResult();
            var pageResult = VideoBLL.ApiList(pageSize, pageIndex);
            result.Data = pageResult;
            return Json(result);
        }
    }
}